﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PDX.ChangeTracking
{
    public class ChangeTrackerAttacher : IAttacher<Element>
    {
        public void Attach(Element target)
        {
            var editor = target as Editor;
            if (editor != null)
            {
                var locator = new ChangeRecorderLocator(editor);
                var recorder = new RelocatableChangeRecorder(locator);
                var tracker = new ChangeTracker(editor, recorder);
            }
        }
    }
}
